<!-- 
  examinationLayout.html.erb
  Description: Layout for the Examination interface
  Created on: January 11, 2011
  Last modified on: March 18, 2013
  Copyright 2013 PIT Solutions Pvt. Ltd. All Rights Reserved.
-->

<!DOCTYPE html>
<html>
  <head>
	<title>VirtualX - Online Examination System</title>
	<%= favicon_link_tag 'favicon.ico' %>
    <%= stylesheet_link_tag "application" %>
	<%= stylesheet_link_tag "styles", "dropdown.linear", "validationEngine.jquery.css" %>
	<%= stylesheet_link_tag "jquery-ui", "jquery.ui.theme"%>
    <%= javascript_include_tag :defaults %>

	<%= javascript_include_tag  'rails'%>
	<%= javascript_include_tag "jquery-ui.min.js", "jquery-ui-timepicker.js"%>
	<%if t('language.lang') == "en"%>
	<%= javascript_include_tag 'jquery.validationEngine-en', 'jquery.validationEngine'%>
	<%elsif t('language.lang') == "de"%>
	<%= javascript_include_tag 'jquery.validationEngine-de', 'jquery.validationEngine'%>
	<%elsif t('language.lang') == "ar"%>
	<%= javascript_include_tag 'jquery.validationEngine-ar', 'jquery.validationEngine'%>
	<%elsif t('language.lang') == "zh"%>
	<%= javascript_include_tag 'jquery.validationEngine-zh', 'jquery.validationEngine'%>
	<%end%>	
	
	
	
	<%= csrf_meta_tag %>
	<%= yield(:head) %>
	
  </head>
<body class="bgimg" style="background-color:#fff">
<div id="mainWrapper">
<div class="wrapperContent">
  <div class="headerCol">
    
    <div class="welMsg">
      
      <%if current_user%>
	      <%if current_user.is_temp_examinee == 1%>
	      <p><%=t('general.welcome')%> <strong><%="#{current_user.login} "%></strong></p>
	      <%else%>
	      <p><%=t('general.welcome')%> <strong><%="#{current_user.name} "%></strong></p>
	      <%end%>
      <%end%>
      
    </div>
    <div class="lan_sign_Col">
      <div class="signOut">
      	<%unless current_user%>
		<p><%= link_to t('general.signin'), new_user_session_path, :id=>"login"%></p>
		<%else%>
        <p><%= link_to t('general.signout'), logout_path%></p>
		<%end%>
      </div>
      
    </div>
  </div>
  <div class="logoHolder">
    <div class="clientLogo">
    	<%clientImage = ClientImage.find(:first)%>
		<%unless clientImage == nil%>
    	<%= image_tag clientImage.image.url(:thumb)%>
		<%else%>
		<%= image_tag "clientLogo.png", :size => "236x60", :alt=>'img' %>
		<%end%></div>
    <div class="virtualxLogo"><%= image_tag "virtualx_logo.jpg", :size => "236x60", :alt=>'img' %></div>
  </div>

  <div class="navigation"> </div>
  <div class="contentWrapper">


    <div class="midCol">
       <% flash.each do |name, msg| %>
	   <%if name.to_s == "notice"%>
        <%= content_tag :div, msg, :class => "notice" %>
	   <%elsif name.to_s == "success"%>
	   <%= content_tag :div, msg, :class => "success" %>
	   <%elsif name.to_s == "error"%>
	   <%= content_tag :div, msg, :class => "error" %>
	   <%end%>
      <% end %>
   <%= yield %>
    </div>
  </div>
  
  <div class="clear"></div>
</div>
<div class="clear"></div>
</div>

  </body>
</html>


